package com.slg.android.manyanime.bean;

import org.json.JSONException;
import org.json.JSONObject;

import java.io.Serializable;

/**
 * Created by Thinkpad on 2015/3/13.
 */
public class Hua implements Serializable{

//    "name": "015",
//            "btn_str": "015",
//            "id": "100581452",
//            "type": "0"
    private String name;
    private String btn_str;
    private String id;
    private String type;
    private static final long serialVersionUID = 1L;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBtn_str() {
        return btn_str;
    }

    public void setBtn_str(String btn_str) {
        this.btn_str = btn_str;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void parseJson(JSONObject object){
        try {
            id=object.getString("id");
            name=object.getString("name");
            btn_str=object.getString("btn_str");
            type=object.optString("type");

        } catch (JSONException e) {
            e.printStackTrace();
        }


    }
}
